<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript">
  jQuery(document).ready(function(){
    jQuery('#linkId').click(function(){
      alert("I am clicked");
    });
  });
</script>

<p><a href="#" id="linkId">Click Here :)</a></p>
<p><a href="#" >Click Here 2 :(</a></p>
<p><a href="#" >Click Here 3 :(</a></p>
<p><a href="#" >Click Here 4 :(</a></p>